package com.zee.activity.ui

import android.os.Bundle
import android.support.v7.app.AppCompatActivity
//import com.example.test.TestV3Fragment
import com.zee.activity.R
import com.zee.utils.ZRouterUtils
import kotlinx.android.synthetic.main.activity_route.*
import org.greenrobot.eventbus.Route

/**
 * @author Administrator
 * 路由框架测试
 */

class RouteActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_route)

        id_route_A.setOnClickListener {
            ZRouterUtils.startActivity("测设2").letsGo()
        }

        id_route_B.setOnClickListener {
//            val fragment = ZRouter.getInstance().getFragment(TestV3Fragment::class.java).putString("title", "测试标题成功吗？").letsGo(LetsGoAdapter());
//            if (fragment != null) {
//                supportFragmentManager.beginTransaction().replace(R.id.id_fragment_root, fragment).commitAllowingStateLoss();
//            } else {
//                UIUtils.onShowToast("获得fragment 为 null")
//            }
        }
    }



}
